<?php
session_start();
if(!isset($_SESSION['Name'])){
header('Location: index.php');
}
if(isset($_GET['objem'])){
$_SESSION['objem'] = $_GET['objem'];
header('Location: step3.php');}

include("Design.php");
include("DB.php");
Top();
?>
<form action="step2.php" method="get">
		Objem motoru <br>
		<input type="radio" name="objem" value="1"><?php echo GetObjemFromId(1); ?><br>
		<input type="radio" name="objem" value="2"><?php echo GetObjemFromId(2); ?><br>
		<input type="radio" name="objem" value="3"><?php echo GetObjemFromId(3); ?>
	<input type="submit" name="next" value="Dalsi">
	</form>
	

</form>

<?php
if(!isset($_GET['objem'])&&isset($_GET['next'])){
echo "vyberte hodnotu";}
Bottom();
?>